made minor mode lighter customizable
authorWill S. Medrano <will.s.medrano@gmail.com>
Mon, 14 Mar 2016 01:07:58 +0000 (18:07 -0700)
committerWill S. Medrano <will.s.medrano@gmail.com>
Mon, 14 Mar 2016 01:07:58 +0000 (18:07 -0700)
which-key.el

index d874e18d297e23f2773b81015f45a50d6a571588..ff0716beb168c7d503f302b1b10d99af0aacde76 100644 (file)
@@ -424,6 +424,11 @@ ignored."
   :group 'which-key
   :type 'function)
 
+(defcustom which-key-custom-lighter " WK"
+  "minor mode lighter to use in the mode-line."
+  :group 'which-key
+  :type 'string)
+
 (defvar which-key-inhibit nil
   "Prevent which-key from popping up momentarily by setting this
 to a non-nil value for the execution of a command. Like this
@@ -496,7 +501,7 @@ alongside the actual current key sequence when
 (define-minor-mode which-key-mode
   "Toggle which-key-mode."
   :global t
-  :lighter " WK"
+  :lighter which-key-custom-lighter
   :keymap (let ((map (make-sparse-keymap)))
             (mapc
              (lambda (prefix)